package com.weipai.education.mapper;

import com.weipai.education.model.PurchaseDetail;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface PurchaseDetailMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(PurchaseDetail record);

    int insertSelective(PurchaseDetail record);

    PurchaseDetail selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(PurchaseDetail record);

    int updateByPrimaryKey(PurchaseDetail record);

    List<PurchaseDetail> getGoodsBarCodeByPurchaseNumber(String purchaseNumber);

    Map<String,Object> getPurchaseDetail(@Param("purchaseNumber") String purchaseNumber,
                                     @Param("goodsBarCode") String goodsBarCode);

    Integer selectBarcodeByOrderNumber(@Param("BarCode") String BarCode,@Param("OrderNumber") String OrderNumber);
    List<Map<String,Object>> getAllGoodsBar(@Param("orderNumber") String orderNumber);
}